﻿<%@ Page Title="Chỉnh sửa thông tin deal" Theme="AdminTheme" Language="C#" MasterPageFile="~/Admin/MasterPageAdmin.Master" AutoEventWireup="true" CodeBehind="EditDeal.aspx.cs" Inherits="_5ChickDeal.Admin.EditDeal" %>
<%@ Register src="Control/EditDeal.ascx" tagname="EditDeal" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

<script type="text/javascript" language="javascript" src="../Js/fileupload/jquery.uploadify.v2.1.4.min.js"></script>
<script type="text/javascript" language="javascript" src="../Js/fileupload/swfobject.js"></script>
<script type="text/javascript" language="javascript" src="../Js/js/close.js"></script>
<link rel="Stylesheet" type="text/css" href="../Js/fileupload/uploadify.css" />
<script type="text/javascript">
    $(function() {
        $("#ctl00_Content_EditDeal1_DropdownListCongTy").combobox();
        $(".ui-autocomplete-input").attr("readonly", "readonly");
        $("#ctl00_Content_EditDeal1_TextBoxNgayBatDau").datepicker();
        $("#ctl00_Content_EditDeal1_TextBoxNgayKetThuc").datepicker();
        $('#accordion').accordion({
            autoHeight: false,
            navigation: true
        });
        $("#tabs").tabs();
        $('#fuFiles').uploadify({

            'uploader': '../Js/fileupload/uploadify.swf',

            'script': '../Ajax/FileUpload.aspx',

            'cancelImg': '../Js/fileupload/cancel.png',


            'multi': 'true',


            'fileExt': '*.jpg;*.gif;*.png',
            'fileDesc': 'Image Files (.JPG, .GIF, .PNG)',
            'buttonText': 'Browse...',
            'removeCompleted': false,

            'queueSizeLimit': 200,
            'onComplete': function(event, ID, fileObj, response, data) {

                $("#imglist").append(response);
                $("#imglist").xoahinhd();
            }

        });
        $.ajax({
            url: "../Ajax/GetDealsImages.aspx?deal=" + $("#ctl00_Content_EditDeal1_ac").val(),
            cache: false,
            success: function(html) {
                $("#imglist").append(html);
                $("#DataList1").xoahinhd();
            }
        });
        $("input:submit").button();
        $("#quaylai").button();
    });
    
</script>



</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">

    <uc1:EditDeal ID="EditDeal1" runat="server" />
</asp:Content>
